﻿/*
 * @Autor: PK
 * @Date: 2021/12/23 17:13:SS
 */

using NLog;
using ShkSimulation.core.dao.input.resource;
using ShkSimulation.core.template;

namespace ShkSimulation.core.util {

	public static class CloneExtensions {
		
		public static readonly Logger logger = LogManager.GetLogger(nameof(NetworkEnvironment));

		public static Resource Clone(this Resource resource) {
			return new DefaultDataTableResource(resource.Uniquekey, resource.GetDataTable().Copy(), resource.ResourceType, resource.PathInfo);
		}

	}

}